{{extend 'layout.html'}}

{{=search}}
<span>共搜到{{=totalResults}}件宝贝</span>
<h3><span>第{{=start}}-{{=end}}件</span><span>~共{{=page}}页~</span><span>{{=page_up}}</span><span>{{=page_down}}</span></h3>
{{for i in products:}}
    <h3>~宝贝名称~：</h3>
    {{name = i['name']}}
    {{=name}}
    <br />
    {{try:}}
        {{=IMG(_src=i['pic_path'], _alt=('alt:'+name))}}
    {{except KeyError:}}
        {{=IMG(_src='', _alt=('alt:无图片'))}}
    {{pass}}
    {{try:}}
    <ul>'其他信息'
        <li>产品ID: {{=A(i['product_id'], _href=URL(r=request, args='each', vars={'keys': i['product_id']}))}}</li>
        <li>商品类目ID: {{=i['cid']}}</li>
        <li>关键属性列表: {{=i['props']}}</li>
        <li>关键属性字符串列表: {{i=['props_str']}}</li>
        <li>绑定属性字符串列表: {{i=['binds_str']}}</li>
        <li>描述: {{i=['desc']}}</li>
        <li>子图片: {{i=['productImg'][0]}}</li>
    </ul>
    {{except KeyError:}}
        <p>无其他信息</p>
    {{pass}}
    <br />
    <br />
{{pass}}

